import Global from "../Global"
import cjs=createjs
import UIComponent from "./UIComponent"
//import createjs from "../../createjs"
/**
 * 视图基类
 */
export default abstract class BaseView extends UIComponent{
    
    constructor(w?:number,h?:number){
        super()
        this.width=w||Global.stageWidth
        this.height=h||Global.stageHeight
    }
    protected getResource(id:string):any{
        return Global.loader.getResource(id)
    }
}